﻿<Window x:Class="InputBindingStudio.BindingDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:p="clr-namespace:Phoenix.Xna.Framework.Input;assembly=Phoenix.Xna.Framework"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
    Title="BindingDialog" Height="194" Width="300">

    <Window.Resources>
        <ResourceDictionary>

            <ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type sys:Enum}" x:Key="_deviceTypeEnum">
                <ObjectDataProvider.MethodParameters>
                    <x:Type TypeName="p:DeviceType" />
                </ObjectDataProvider.MethodParameters>
            </ObjectDataProvider>

        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <StackPanel>
            <TextBox x:Name="_action"></TextBox>
            <ComboBox x:Name="_deviceType" ItemsSource="{Binding Source={StaticResource _deviceTypeEnum}}" SelectionChanged="OnDeviceTypeChanged"></ComboBox>
            <ComboBox x:Name="_deviceSubType" SelectionChanged="OnDeviceSubTypeChanged"></ComboBox>
            <ComboBox x:Name="_value"></ComboBox>
            <Button Click="button1_Click">Ok</Button>
        </StackPanel>
    </Grid>
</Window>
